package br.com.virtual.relatorio.controller;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.inject.Inject;

import br.com.virtual.relatorio.service.impl.RelatorioVendasServiceImpl;
import br.com.virtual.vender.model.Venda;

@ManagedBean @ViewScoped
public class RelatorioVendasMB extends RelatorioMB<Venda> {

	private static final long serialVersionUID = 1L;
	

	@Inject private RelatorioVendasServiceImpl relatorioService;
//	@EJB private RelatorioService<Venda> relatorioService;
	
	
	public String gerarEIr(){
		
		gerar(relatorioService);
		return "vendas-periodo.xhtml";
	}
}
